/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tda_tipoGasolinaCriteria extends AbstractORMCriteria {
	public final IntegerExpression tga_id;
	public final IntegerExpression tga_octanage;
	public final StringExpression tga_nombre;
	
	public Tda_tipoGasolinaCriteria(Criteria criteria) {
		super(criteria);
		tga_id = new IntegerExpression("tga_id", this);
		tga_octanage = new IntegerExpression("tga_octanage", this);
		tga_nombre = new StringExpression("tga_nombre", this);
	}
	
	public Tda_tipoGasolinaCriteria(PersistentSession session) {
		this(session.createCriteria(Tda_tipoGasolina.class));
	}
	
	public Tda_tipoGasolinaCriteria() throws PersistentException {
		this(orm.PruebaPDS1PersistentManager.instance().getSession());
	}
	
	public Tdp_precioCriteria createTdp_preciopreCriteria() {
		return new Tdp_precioCriteria(createCriteria("tdp_preciopre"));
	}
	
	public Tda_tipoGasolina uniqueTda_tipoGasolina() {
		return (Tda_tipoGasolina) super.uniqueResult();
	}
	
	public Tda_tipoGasolina[] listTda_tipoGasolina() {
		java.util.List list = super.list();
		return (Tda_tipoGasolina[]) list.toArray(new Tda_tipoGasolina[list.size()]);
	}
}

